package org.jon.lagoon.dao;

import org.jon.lagoon.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by Jon on 2017/9/26.
 */
@Repository
public interface UserDao extends CrudRepository<User, Long>{

    User save(User user);

    User findByUserName(String userName);
}
